﻿@model Phatent.Model.Pages.CaseCollection

<div class="mnav">
    <div class="container">
        <div class="row" style="height:48px;">
            <ul>
                @foreach (var nav in Model)
                {
                    <li @(ViewBag.Case!=null && nav.ID==((Phatent.Model.Pages.CaseModel)ViewBag.Case).ID?"class=actived":"")>
                        <a href="@nav.FriendUrl">@(Phatent.Website.WebContext.Language=="zh"?nav.CaseName:nav.EName)</a>
                        <div class="triangle"></div>
                        @if (nav.Items != null && nav.Items.Count > 0)
                        {
                            <div class="subNav">
                                <div class="triangle"></div>
                                <ul>
                                    @foreach (var subNav in nav.Items)
                                    {
                                        <li><a href="@subNav.FriendUrl">@Html.Raw(Phatent.Website.WebContext.Language=="zh"?subNav.CaseName:subNav.EName)</a></li>    
                                    }
                                </ul>
                            </div>     
                        }
                    </li>
                }
            </ul>
        </div>
    </div>
</div>
